package com.zl.tby.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.zl.tby.model.TbyMountainsPerson;
import lombok.Data;

import java.util.Map;

/**
 * 护林员
 * @author changpeng
 * @version 1.0
 * @since 2024/8/6 20:12
 */
@HeadRowHeight(20)
@ContentRowHeight(15)
@Data
public class TbyMountainsPersonForm {
    /**主键id*/
    private Long id;
    @ExcelProperty(value = "姓名", index = 0)
    private String name;
    private String photo;
    @ExcelProperty(value = "电话", index = 1)
    private String phone;
    private String isAudit;
    @ExcelProperty(value = "是否审核", index = 2)
    private String isAuditText;
    private String userType;
    @ExcelProperty(value = "护林员类型", index = 3)
    private String userTypeText;
    private String status;
    @ExcelProperty(value = "聘用状态", index = 4)
    private String statusText;
    @ExcelProperty(value = "所属部门", index = 5)
    private String orgName;
    @ExcelProperty(value = "职务", index = 6)
    private String position;

    public void merge(TbyMountainsPerson person) {
        if (person != null) {
            this.setOrgName(person.getOrgName());
            this.setPosition(person.getPosition());
            this.setPhoto(person.getPhoto());
        }
    }
}
